package com.william.lifetraxer.utils;

import android.net.Uri;
import android.provider.BaseColumns;

public final class TrackDb {
	
	public static final String TABLE_NAME = "tracks";
	public static final String DEFAULT_SORT_ORDER = "_id DESC";
	public static final String AUTHORITY = "com.william.lifetraxer.utils.TrackContentProvider";
	
	public static final String[] columns = new String[]{TrackColumns.TRACK_ID,TrackColumns.USER_ID,TrackColumns.GROUP_ID,TrackColumns.PATH,TrackColumns.TYPE,TrackColumns.NAME};
	public static final String[] fullColumns = new String[]{TrackColumns._ID,TrackColumns.TRACK_ID,TrackColumns.USER_ID,TrackColumns.GROUP_ID,TrackColumns.PATH,TrackColumns.TYPE,TrackColumns.NAME};
	
	public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/tracks");
	public static final String ITEM_TYPE = "vnd.android.cursor.item/vnd.william.track";
	public static final String COLLECTION_TYPE = "vnd.android.cursor.dir/vnd.william.track";
	
	private TrackDb(){
		
	}
	
	public static final class TrackColumns implements BaseColumns{
		
		private TrackColumns(){
			
		}
		
		public static final String TRACK_ID = "trackid";
		public static final String USER_ID = "userid";
		public static final String GROUP_ID = "groupid";
		public static final String PATH = "path";
		public static final String TYPE = "type";
		public static final String NAME = "name";
		
	}
}
